import request from '@/utils/request'

/**
 * 绘画提示词分类接口
 */
const drawsPromptCategoryApi = {
    /**
     * 提示词分类列表
     */
    lists(params: {
        engine: string;
        name?: string;
        is_disable?: number;
        start_time?: string;
        end_time?: string;
    }): Promise<any> {
        return request.get({
            url: '/apply/draws/prompt_category/lists',
            params
        })
    },

    /**
     * 提示词分类新增
     */
    add(params: {
        engine: string;
        name: string;
        sort: number;
        is_disable: number;
    }): Promise<any> {
        return request.post({
            url: '/apply/draws/prompt_category/add',
            params
        })
    },

    /**
     * 提示词分类编辑
     */
    edit(params: {
        id: number;
        engine: string;
        name: string;
        sort: number;
        is_disable: number;
    }): Promise<any> {
        return request.post({
            url: '/apply/draws/prompt_category/edit',
            params
        })
    },

    /**
     * 提示词分类删除
     */
    delete(params: {
        engine: string;
        id: number;
    }): Promise<any> {
        return request.post({
            url: '/apply/draws/prompt_category/delete',
            params
        })
    }
}

export default drawsPromptCategoryApi
